#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j;
  char _;
  cin >> i >> _ >> j;
  j++;

  if (j == 9) {
    i++;
    j = 1;
  }
  cout << i << "-" << j << endl;

  return 0;
}